{{extend name="user/index"}}
{{block name="title"}}
<body data-type="login">
<script src="/static/admin/js/theme.js"></script>
{{/block}}

{{block name="content"}}
<div class="am-g tpl-g">
    <!-- 风格切换 -->
    <div class="tpl-skiner">
        <div class="tpl-skiner-toggle am-icon-cog">
        </div>
        <div class="tpl-skiner-content">
            <div class="tpl-skiner-content-title">
                选择主题
            </div>
            <div class="tpl-skiner-content-bar">
                <span class="skiner-color skiner-white" data-color="theme-white"></span>
                <span class="skiner-color skiner-black" data-color="theme-black"></span>
            </div>
        </div>
    </div>
    <div class="tpl-login">
        <div class="tpl-login-content">
            <div class="tpl-login-title">添加菜品</div>
            <span class="tpl-login-content-info">
                  创建一个新的菜品
              </span>


            <form class="am-form tpl-form-line-form" action="{{:url('admin/GoodsController/save')}}" method="post" enctype="multipart/form-data">
                
                <div class="am-form-group">
                    <!-- <label for="user-weibo" class="am-u-sm-3 am-form-label">封面图 <span class="tpl-form-line-small-title">Images</span></label> -->
                    <div class="am-u-sm-9">
                        <div class="am-form-group am-form-file">
                            <div class="tpl-form-file-img">
                                <img src="/static/admin/img/a5.png" width="200" height="150" alt="" >
                            </div>
                            <button type="button" class="am-btn am-btn-danger am-btn-sm">
                                <i class="am-icon-cloud-upload"></i> 添加菜品图片
                            </button>
                            <input id="doc-form-file" type="file" multiple="" name="pictrue">
                        </div>

                    </div>
                </div> 


                <div class="am-form-group">
                    <label for="user-phone" class="am-u-sm-12 am-form-label am-text-left">分类</label>
                    <div class="am-u-sm-12  am-margin-top-xs">
                        <select data-am-selected="{searchBox: 1}" style="display: none;" name="gcid">
                        {{volist name="list" key="k" id="v" }}
                          <option value="{{$v['id']}}">{{$v['name']}}</option>
                        {{/volist}}
                        </select>
                    </div>
                </div>

                <div class="am-form-group">
                    <input type="text" class="tpl-form-input" name="name" placeholder="菜品名">
                </div>

                <div class="am-form-group">
                    <input type="text" class="tpl-form-input" name="details" placeholder="菜品描述">
                </div>

                <div class="am-form-group">
                    <input type="text" class="tpl-form-input" name="price" placeholder="菜品价格">
                </div>

                <div class="am-form-group">
                    <div class="am-u-sm-9">
                        <select data-am-selected="{{searchBox: 1}}" style="display: none;" name="hot">
                            <option value="1">热门菜</option>
                            <option value="0">普通菜</option>
                        </select>
                    </div>
                </div>

                <div class="am-form-group">

                    <button class="am-btn am-btn-primary  am-btn-block tpl-btn-bg-color-success  tpl-login-btn">提交
                    </button>

                </div>
            </form>
        </div>
    </div>
</div>


{{/block}}

